#include "Game.h"
#include "MenuState.h"
#include "PlayState.h"
#include <iostream>

int main(int argc, char* argv[])
{
	GameInst::Instance()->Init("test", 640, 480, 32, false);

	GameInst::Instance()->ChangeState(PlayState::Instance());

	while(GameInst::Instance()->Running())
	{
		GameInst::Instance()->HandleEvents();
		GameInst::Instance()->Update();
		GameInst::Instance()->Draw();
	}

	// Cleanup the engine
	GameInst::Instance()->Clean();

	return 0;
}